home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
276_01
/
test16c.asm
< prev
next >
Wrap
Assembly Source File
|
1989-10-01
|
5KB
|
436 lines
;
; This file contains the opcodes of the PIC16C52 CPU in numerical order for
; testing the portable PIC1650 cross-assembler.
;
DEST EQU 123H
SUBR EQU 45H
BIT EQU 6
;
; 0800H - 08FFH
;
RETLW 000H
RETLW 001H
RETLW 002H
RETLW 003H
RETLW 004H
RETLW 005H
RETLW 006H
RETLW 007H
RETLW 008H
RETLW 009H
RETLW 00AH
RETLW 00BH
RETLW 00CH
RETLW 00DH
RETLW 00EH
RETLW 00FH
;We'll leave out 0810H - 08EFH for brevity.
RETLW 0F0H
RETLW 0F1H
RETLW 0F2H
RETLW 0F3H
RETLW 0F4H
RETLW 0F5H
RETLW 0F6H
RETLW 0F7H
RETLW 0F8H
RETLW 0F9H
RETLW 0FAH
RETLW 0FBH
RETLW 0FCH
RETLW 0FDH
RETLW 0FEH
RETLW 0FFH
;
; 0900H - 09FFH
;
CALL 000H
CALL 001H
CALL 002H
CALL 003H
CALL 004H
CALL 005H
CALL 006H
CALL 007H
CALL 008H
CALL 009H
CALL 00AH
CALL 00BH
CALL 00CH
CALL 00DH
CALL 00EH
CALL 00FH
;We'll leave out 0910H - 09EFH for brevity.
CALL 0F0H
CALL 0F1H
CALL 0F2H
CALL 0F3H
CALL 0F4H
CALL 0F5H
CALL 0F6H
CALL 0F7H
CALL 0F8H
CALL 0F9H
CALL 0FAH
CALL 0FBH
CALL 0FCH
CALL 0FDH
CALL 0FEH
CALL 0FFH
;
; 0A00H - 0AFFH
;
GOTO 000H
GOTO 001H
GOTO 002H
GOTO 003H
GOTO 004H
GOTO 005H
GOTO 006H
GOTO 007H
GOTO 008H
GOTO 00AH
GOTO 00AH
GOTO 00BH
GOTO 00CH
GOTO 00DH
GOTO 00EH
GOTO 00FH
;We'll leave out 0A10H - 0AEFH for brevity.
GOTO 0F0H
GOTO 0F1H
GOTO 0F2H
GOTO 0F3H
GOTO 0F4H
GOTO 0F5H
GOTO 0F6H
GOTO 0F7H
GOTO 0F8H
GOTO 0F9H
GOTO 0FAH
GOTO 0FBH
GOTO 0FCH
GOTO 0FDH
GOTO 0FEH
GOTO 0FFH
;
; 0B00H - 0BFFH
;
GOTO 100H
GOTO 101H
GOTO 102H
GOTO 103H
GOTO 104H
GOTO 105H
GOTO 106H
GOTO 107H
GOTO 108H
GOTO 10BH
GOTO 10AH
GOTO 10BH
GOTO 10CH
GOTO 10DH
GOTO 10EH
GOTO 10FH
;We'll leave out 0B10H - 0BEFH for brevity.
GOTO 1F0H
GOTO 1F1H
GOTO 1F2H
GOTO 1F3H
GOTO 1F4H
GOTO 1F5H
GOTO 1F6H
GOTO 1F7H
GOTO 1F8H
GOTO 1F9H
GOTO 1FAH
GOTO 1FBH
GOTO 1FCH
GOTO 1FDH
GOTO 1FEH
GOTO 1FFH
;
; 0C00H - 0CFFH
;
MOVLW 000H
MOVLW 001H
MOVLW 002H
MOVLW 003H
MOVLW 004H
MOVLW 005H
MOVLW 006H
MOVLW 007H
MOVLW 008H
MOVLW 00CH
MOVLW 00AH
MOVLW 00BH
MOVLW 00CH
MOVLW 00DH
MOVLW 00EH
MOVLW 00FH
;We'll leave out 0C10H - 0CEFH for brevity.
MOVLW 0F0H
MOVLW 0F1H
MOVLW 0F2H
MOVLW 0F3H
MOVLW 0F4H
MOVLW 0F5H
MOVLW 0F6H
MOVLW 0F7H
MOVLW 0F8H
MOVLW 0F9H
MOVLW 0FAH
MOVLW 0FBH
MOVLW 0FCH
MOVLW 0FDH
MOVLW 0FEH
MOVLW 0FFH
;
; 0D00H - 0DFFH
;
IORLW 000H
IORLW 001H
IORLW 002H
IORLW 003H
IORLW 004H
IORLW 005H
IORLW 006H
IORLW 007H
IORLW 008H
IORLW 00DH
IORLW 00AH
IORLW 00BH
IORLW 00DH
IORLW 00DH
IORLW 00EH
IORLW 00FH
;We'll leave out 0D10H - 0DEFH for brevity.
IORLW 0F0H
IORLW 0F1H
IORLW 0F2H
IORLW 0F3H
IORLW 0F4H
IORLW 0F5H
IORLW 0F6H
IORLW 0F7H
IORLW 0F8H
IORLW 0F9H
IORLW 0FAH
IORLW 0FBH
IORLW 0FCH
IORLW 0FDH
IORLW 0FEH
IORLW 0FFH
;
; 0E00H - 0EFFH
;
ANDLW 000H
ANDLW 001H
ANDLW 002H
ANDLW 003H
ANDLW 004H
ANDLW 005H
ANDLW 006H
ANDLW 007H
ANDLW 008H
ANDLW 00EH
ANDLW 00AH
ANDLW 00BH
ANDLW 00EH
ANDLW 00DH
ANDLW 00EH
ANDLW 00FH
;We'll leave out 0E10H - 0EEFH for brevity.
ANDLW 0F0H
ANDLW 0F1H
ANDLW 0F2H
ANDLW 0F3H
ANDLW 0F4H
ANDLW 0F5H
ANDLW 0F6H
ANDLW 0F7H
ANDLW 0F8H
ANDLW 0F9H
ANDLW 0FAH
ANDLW 0FBH
ANDLW 0FCH
ANDLW 0FDH
ANDLW 0FEH
ANDLW 0FFH
;
; 0F00H - 0FFFH
;
XORLW 000H
XORLW 001H
XORLW 002H
XORLW 003H
XORLW 004H
XORLW 005H
XORLW 006H
XORLW 007H
XORLW 008H
XORLW 00FH
XORLW 00AH
XORLW 00BH
XORLW 00FH
XORLW 00DH
XORLW 00EH
XORLW 00FH
;We'll leave out 0F10H - 0FEFH for brevity.
XORLW 0F0H
XORLW 0F1H
XORLW 0F2H
XORLW 0F3H
XORLW 0F4H
XORLW 0F5H
XORLW 0F6H
XORLW 0F7H
XORLW 0F8H
XORLW 0F9H
XORLW 0FAH
XORLW 0FBH
XORLW 0FCH
XORLW 0FDH
XORLW 0FEH
XORLW 0FFH
;
; Now, let's throw in some of the built-in macros so that we can make sure
; that they work.
;
CLRC
CLRDC
CLRZ
SETC
SETDC
SETZ
SKPNC
SKPNDC
SKPNZ
SKPC
SKPDC
SKPZ
TSTF @FSR
TSTF RTCC
TSTF PC
TSTF SW
TSTF FSR
TSTF PORTA
TSTF PORTB
TSTF PORTC
TSTF F8
TSTF F31
MOVFW @FSR
MOVFW RTCC
MOVFW PC
MOVFW SW
MOVFW FSR
MOVFW PORTA
MOVFW PORTB
MOVFW PORTC
MOVFW F8
MOVFW F31
B 000H
B 001H
B 002H
B 0FDH
B 0FEH
B 0FFH
B 100H
B 101H
B 102H
B 1FDH
B 1FEH
B 1FFH
BC 000H
BC 001H
BC 002H
BC 0FDH
BC 0FEH
BC 0FFH
BC 100H
BC 101H
BC 102H
BC 1FDH
BC 1FEH
BC 1FFH
BDC 000H
BDC 001H
BDC 002H
BDC 0FDH
BDC 0FEH
BDC 0FFH
BDC 100H
BDC 101H
BDC 102H
BDC 1FDH
BDC 1FEH
BDC 1FFH
BZ 000H
BZ 001H
BZ 002H
BZ 0FDH
BZ 0FEH
BZ 0FFH
BZ 100H
BZ 101H
BZ 102H
BZ 1FDH
BZ 1FEH
BZ 1FFH
BNC 000H
BNC 001H
BNC 002H
BNC 0FDH
BNC 0FEH
BNC 0FFH
BNC 100H
BNC 101H
BNC 102H
BNC 1FDH
BNC 1FEH
BNC 1FFH
BNDC 000H
BNDC 001H
BNDC 002H
BNDC 0FDH
BNDC 0FEH
BNDC 0FFH
BNDC 100H
BNDC 101H
BNDC 102H
BNDC 1FDH
BNDC 1FEH
BNDC 1FFH
BNZ 000H
BNZ 001H
BNZ 002H
BNZ 0FDH
BNZ 0FEH
BNZ 0FFH
BNZ 100H
BNZ 101H
BNZ 102H
BNZ 1FDH
BNZ 1FEH
BNZ 1FFH
END